package com.fs.spring.example01;

import com.fs.spring.example01.model.Car;
import com.fs.spring.example01.model.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author shuai.fang
 * @date：2017-08-02
 * @description：
 */
@Configuration
public class Beans {

	@Bean(name = "car")
	public Car buildCar() {
		Car car = new Car();
		car.setBrank("asdfadfadsf");
		return car;
	}

	@Bean
	public Person person() {
		Person person = new Person();
		person.setId(1L);
		person.setName("fs");
		return person;
	}
}
